﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Models.Common
{
    public class ResponseCode
    {
        //--------通用规范---------

        /// <summary>
        /// 操作成功
        /// </summary>
        public static string SUCCESS = "200";
        public static string SUCCESS_MSG = "操作成功";
        /// <summary>
        /// 服务器内部错误
        /// </summary>
        public static string System_ERROR = "500";
        public static string System_ERROR_MSG = "服务器内部错误";

        /// <summary>
        /// 无内容返回
        /// </summary>
        public static string EMPTY = "204";
        public static string EMPTY_MSG = "无内容返回";

        /// <summary>
        /// 资源不存在或不可用
        /// </summary>
        public static string NOT_FOUND = "404";
        public static string NOT_FOUND_MSG = "资源不存在或不可用 ";

        /// <summary>
        /// 请求超时
        /// </summary>
        public static string TIME_OUT = "408";
        public static string TIME_OUT_MSG = "请求超时 ";

        /// <summary>
        /// 未授权
        /// </summary>
        public static string NOT_GRANT = "401";
        public static string NOT_GRANT_MSG = "未授权";

        /// <summary>
        /// 权限不足
        /// </summary>
        public static string NOT_Permissions = "403";
        public static string NOT_Permissions_MSG = "权限不足访问本资源";

        //----------自定义

        /// <summary>
        /// 重复
        /// </summary>
        public static string REPEAT = "1001";
        public static string REPEAT_MSG = "数据重复";



        public static string USERNAMEORPWD_ERROR = "018888";
        public static string USERNAMEORPWD_ERROR_MSG = "用户名或者密码错误";

        public static string DATA_ISNULL_ERROR = "017777";
        public static string DATA_ISNULL_ERROR_MSG = "接收到的数据内容为空";

       

        public static string Del_Success = "200000";
        public static string Del_Success_MSG = "删除成功";

        public static string Cancel_Success_MSG = "取消成功";


        public static string USER_INFO_ERROR = "016666";
        public static string USER_INFO_ERROR_MSG = "用户信息不存在！";

        public static string NOT_DATA_ERROR = "011001";
        public static string NOT_DATA_ERROR_MSG = "找不到记录！";

        public static string DATA_CHECK_ERROR = "011003";
        public static string DATA_CHECK_ERROR_MSG = "数据校验失败！";

        public static string DATA_FILE_ERROR = "011004";
        public static string DATA_FILE_ERROR_MSG = "文件保存失败！";

        public static string Repetition_ERROR = "011005";
        public static string Repetition_ERROR_MSG = "该数据已经存在,请勿重复提交！";

        public static string ORD_PWD_ERROR = "011006";
        public static string ORD_PWD_ERROR_MSG = "原密码错误";


        public static string FAILED = "000001";
        public static string FAILED_MSG = "原密码错误";

        public static string SUCCESS_ts = "000002";
        public static string SUCCESS_ts_MSG = "信息成功";



    }
}